/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wollongongtemp.web;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import wollongongtemp.ejb.CustomerBean;
import wollongongtemp.entity.Customer;

/**
 *
 * @author Wade
 */
@ManagedBean(name = "createCustomerView")
@RequestScoped
public class CreateCustomerView {
    @EJB
    private CustomerBean customerBean;

    private Customer customer = new Customer();

    public Customer getCustomer() {
        return customer;
    }

    /** Creates a new instance of CreateCustomerView */
    public CreateCustomerView() {
    }

    public void createCustomer() {
        customerBean.createCustomer(customer);
    }

}
